<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Face_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-face_name" data-rule="required" class="form-control" name="row[face_name]" type="text" value="{$row.face_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Left_eye_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-left_eye_name" data-rule="required" class="form-control" name="row[left_eye_name]" type="text" value="{$row.left_eye_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Left_eyebrow_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-left_eyebrow_name" data-rule="required" class="form-control" name="row[left_eyebrow_name]" type="text" value="{$row.left_eyebrow_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mouth_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mouth_name" data-rule="required" class="form-control" name="row[mouth_name]" type="text" value="{$row.mouth_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nose_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nose_name" data-rule="required" class="form-control" name="row[nose_name]" type="text" value="{$row.nose_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Right_eye_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-right_eye_name" data-rule="required" class="form-control" name="row[right_eye_name]" type="text" value="{$row.right_eye_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Right_eyebrow_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-right_eyebrow_name" data-rule="required" class="form-control" name="row[right_eyebrow_name]" type="text" value="{$row.right_eyebrow_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Face_age')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-face_age" data-rule="required" class="form-control" name="row[face_age]" type="text" value="{$row.face_age|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('True_age')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-true_age" data-rule="required" class="form-control" name="row[true_age]" type="number" value="{$row.true_age|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Age_predict')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-age_predict" data-rule="required" class="form-control" name="row[age_predict]" type="number" value="{$row.age_predict|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
